package com.heima.client;

import com.heima.common.dto.ResponseResult;
import com.heima.domain.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

//自媒体微服务暴露接口
@FeignClient("leadnews-media")
public interface MediaClient {

    //保存用户
    @PostMapping("/api/v1/user")
    ResponseResult<WmUser> saveWmUser(@RequestBody WmUser user);

        //修改自媒体用户
    @PutMapping("/api/v1/user")
    ResponseResult updateWmUser(@RequestBody WmUser user);
}